import requests

from utils import get_url


class Login_api():
    def __init__(self):
        self.session = requests.Session()
        self.url = get_url("image_url")
        self.login = get_url("get_url")

    def __del__(self):
        self.session.close()

    def get_verify(self):
        response = self.session.get(self.url)
        return response

    def get_login(self, data):
        response = self.session.post(self.login, data=data)
        return response
